home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
prclp2
/
printclp.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
1KB
|
40 lines
VERSION 2.00
Begin Form Form2
BorderStyle = 1 'Fixed Single
Caption = "PrintClip"
ClientHeight = 0
ClientLeft = -1890
ClientTop = 30
ClientWidth = 1875
Height = 405
Icon = PRINTCLP.FRX:0000
Left = -1950
LinkMode = 1 'Source
LinkTopic = "Form2"
MinButton = 0 'False
ScaleHeight = 0
ScaleWidth = 1875
Top = -315
Width = 1995
End
Sub Form_Load ()
windowstate = 1
End Sub
Sub Form_Resize ()
If windowstate <> 1 Then
windowstate = 1
Const CF_TEXT = 1 ' Define bitmap format.
On Error Resume Next ' Setup error handling.
If Clipboard.GetFormat(CF_TEXT) Then
temp$ = Clipboard.GetText(CF_TEXT) ' Get Clipboard text.
printer.Print temp$
printer.EndDoc
Else
Msg$ = "There is no text on the Clipboard."
MsgBox Msg$ ' Display error message.
End If
End If
End Sub